package com.study.spark.dao.pagerate;

import com.study.spark.domain.pagerate.PageSplitConvertRate;
import com.study.spark.jdbc.JDBCHelper;

/**
 * 页面切片转化率DAO实现类
 * 
 * @author Administrator
 *
 */
public class PageSplitConvertRateDaoImpl implements PageSplitConvertRateDao {

  @Override
  public void insert(PageSplitConvertRate pageSplitConvertRate) {
    String sql = "insert into page_split_convert_rate values(?,?)";
    Object[] params = new Object[] {
        pageSplitConvertRate.getTaskid(), pageSplitConvertRate.getConvertRate() };

    JDBCHelper.getInstance().executeUpdate(sql, params);
  }

}
